{%extend name="Public:layout"/%}

{%block name="title"%}
<h2 class="mb20">
    站点配置
</h2>
{%/block%}

{%block name="contents"%}
<form action="{%:U('/admin/statistic/setting')%}" onsubmit="return false" stverify="true" erroappend="true" method="post"
      beforeSubFun="" enctype="multipart/form-data">
    <table class="table table-listing table-hovered">
        {%foreach name="list" item="vo"%}
        <tr>
          <td class="span4">
              {%$vo.site_key%}
              <input class="input" type="hidden" name="site_key[{%$vo.id%}]" value="{%$vo.site_key%}" />
          </td>
          <td>
              <input class="input" type="text" name="site_value[{%$vo.id%}]" value="{%$vo.site_value%}" />
              <input type="checkbox" name="delete[]" value="{%$vo.site_key%}" /> 删除
          </td>
        </tr>
        {%/foreach%}
        <tr>
          <td class="span4">
              <input class="input input-small" type="text" name="new_key" value="" />
          </td>
          <td>
              <input class="input" type="text" name="new_value" value="" />
          </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input class="btn btn-blue" type="submit" value="提交">
            </td>
        </tr>
    </table>
</form>
{%/block%}

{%block name="js"%}
<script type="text/javascript">
</script>
{%/block%}
